const express = require('express');
const ArticlesRouter = require("../router/user/Articles");
const postsRouter = require("../router/user/posts");
const getIpAddressRouter = require("../router/user/IpAddress");
const open_sourcesRouter = require("../router/user/openSources");
const commentsRouter = require("../router/user/Comments");
const {router: pictureRouter} = require("../Kodo/index")
const userRouter = require("../router/user/User")
const ArticlelikesRouter = require("../router/user/Articlelikes")
const commentlikesRouter = require("../router/user/commentlikes")
const captchaRouter = require("../router/user/captcha")
const screenRouter = require("../router/screen/index")
const WeChatRouter = require("../router/wechat/index")
const AIchat = require("../router/AI/index")
const logRouter = require("../router/logs/log")
const AuthRouter = require("../router/Auth/index")
const PayRouter = require("../router/Pay/index")
const router = express.Router();

// 使用导入的路由
router.use("/article", ArticlesRouter);// 文章
router.use('/post', postsRouter);// 文章
router.use('/location', getIpAddressRouter);// 获取IP地址
router.use("/open", open_sourcesRouter);      // 开源项目
router.use("/comment", commentsRouter);// 评论
router.use("/upload", pictureRouter); // 上传图片
router.use("/user", userRouter);    // 用户信息
router.use("/articlelike", ArticlelikesRouter);
router.use("/commentlike", commentlikesRouter);
router.use("/login", captchaRouter);
router.use("/screen", screenRouter)
router.use("/", WeChatRouter)
router.use("/chat", AIchat)
router.use("/log", logRouter)
router.use("/auth", AuthRouter)
router.use("/Pay", PayRouter)
module.exports = router;
